﻿using Cmp.Web.Common;
using Cmp.Web.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cmp.Web.IService
{
    public interface IPaymentService
    {
        /// <summary>
        /// 根据患者信息获取对应状态的缴费记录
        /// </summary>
        /// <param name="PatientId"></param>
        /// <param name="PayState"></param>
        /// <param name="exception"></param>
        /// <returns></returns>
        Task<List<OutPayInfo>> GetOutPayInfoList(string PatientId, string PayState, out ExceptionAll exception);
        /// <summary>
        /// 门诊缴费预结算
        /// </summary>
        /// <param name="outPay"></param>
        /// <param name="exception"></param>
        /// <returns></returns>
        Task<string> OutPayPre(OutPayInfo outPay, out ExceptionAll exception);
        /// <summary>
        /// 门诊缴费结算
        /// </summary>
        /// <param name="outPay"></param>
        /// <param name="exception"></param>
        /// <returns></returns>
        Task<bool> OutPayConfirm(OutPayInfo outPay, out ExceptionAll exception);
    }
}
